<template>
    <div>
         <router-view v-slot="{ Component }">
  <transition name="fade">
    <component :is="Component" />
  </transition>
</router-view>
    </div>
</template>

<script>

import Home from './page/Home/Home.vue'
export default {
  name: 'App',
  components: {
    Home
  },
}
</script>
 
<style>

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s ease;
}
 
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
*{
    margin: 0;
    padding: 0;
}
</style>
